package com.zhsj.OkeHomeConsumption.utils;

import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.support.v4.app.ActivityOptionsCompat;
import android.view.View;

/**
 * <p>文件描述：<p>
 * <p>创建时间：2018/8/24<p>
 * <p>更改时间：2018/8/24<p>
 */
public class GoActivityUtils {
    public static void GoPhotoViewpagerActivity(Intent i , Activity activity,View view ) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            ActivityOptionsCompat transitionActivityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation
                    (activity, view,"LagerImageView");
            activity.startActivity(i, transitionActivityOptions.toBundle());
        }else{
            activity.startActivity(i);
        }
    }

}
